import {SupplierTableData, TableColumn} from '@/interface/supplier.ts'
import { TreeNode } from "@/interface/commonTypes.ts";

// 左侧树数据
export const treeData: TreeNode[] = [
    {
        label: '所有供应商',
        children: [
            {
                label: '[308]设备供应商',
                children: [
                    {
                        "label": "[30801]汤坑镇广顺评价商场"
                    },
                    {
                        "label": "[30802]张家口大华超市"
                    },
                    {
                        "label": "[30803]北京王府井百货"
                    },
                    {
                        "label": "[30804]上海新世界百货"
                    },
                    {
                        "label": "[30805]广州天河城购物中心"
                    },
                    {
                        "label": "[30806]深圳华润万家"
                    },
                    {
                        "label": "[30807]成都太古里购物中心"
                    },
                    {
                        "label": "[30808]",
                        children: [
                            {
                                "label": "[3080801]成都太古里购物中心"
                            },
                            {
                                "label": "[3080802]北京王府井百货"
                            },
                            {
                                "label": "[3080803]上海新世界百货"
                            },
                            {
                                "label": "[3080804]广州天河城购物中心"
                            },
                        ]
                    },
                    {
                        "label": "[30809]杭州西湖银泰in77"
                    },
                    {
                        "label": "[30810]武汉光谷步行街"
                    }
                ]
                ,
            },
        ],
    },
]

// 表格数据
export const supplierList: SupplierTableData[] = [
    {
        "name": "产品A",
        "code": "001",
        "shortCode": "PA",
        "type": "电子产品",
        "permitNumber": "121323",
        "permitExpiryDate": "2025年12月31日",
        "licenseNumber": "许可证123",
        "licenseExpiryDate": "2025年12月31日",
        "address": "123号主街",
        "phone": "+1234567890",
        "taxRegistrationNumber": "税务登记号123",
        "bankName": "美国银行",
        "accountNumber": "987654321",
        "contactPerson": "张三",
        "creditLimit": "5000",
        "creationDate": "2024年04月07日",
        "usageStatus": "活跃"
    },
    {
        "name": "产品B",
        "code": "002",
        "shortCode": "PB",
        "type": "服装",
        "permitNumber": "121323",
        "permitExpiryDate": "2025年12月31日",
        "licenseNumber": "许可证456",
        "licenseExpiryDate": "2025年11月30日",
        "address": "456号商业街",
        "phone": "+0987654321",
        "taxRegistrationNumber": "税务登记号456",
        "bankName": "中国银行",
        "accountNumber": "123456789",
        "contactPerson": "李四",
        "creditLimit": "6000",
        "creationDate": "2024年04月08日",
        "usageStatus": "停用"
    },
    {
        "name": "产品C",
        "code": "003",
        "shortCode": "PC",
        "type": "食品",
        "permitNumber": "121323",
        "permitExpiryDate": "2025年12月31日",
        "licenseNumber": "许可证789",
        "licenseExpiryDate": "2025年10月29日",
        "address": "789号广场",
        "phone": "+1357924680",
        "taxRegistrationNumber": "税务登记号789",
        "bankName": "工商银行",
        "accountNumber": "987654123",
        "contactPerson": "王五",
        "creditLimit": "7000",
        "creationDate": "2024年04月09日",
        "usageStatus": "活跃"
    },
    {
        "name": "产品D",
        "code": "004",
        "shortCode": "PD",
        "type": "家具",
        "permitNumber": "121323",
        "permitExpiryDate": "2025年12月31日",
        "licenseNumber": "许可证234",
        "licenseExpiryDate": "2025年09月28日",
        "address": "234号街道",
        "phone": "+2468135790",
        "taxRegistrationNumber": "税务登记号234",
        "bankName": "建设银行",
        "accountNumber": "456789123",
        "contactPerson": "赵六",
        "creditLimit": "8000",
        "creationDate": "2024年04月10日",
        "usageStatus": "停用"
    },
    {
        "name": "产品E",
        "code": "005",
        "shortCode": "PE",
        "type": "化妆品",
        "permitNumber": "121323",
        "permitExpiryDate": "2025年12月31日",
        "licenseNumber": "许可证567",
        "licenseExpiryDate": "2025年08月27日",
        "address": "567号大道",
        "phone": "+3698521470",
        "taxRegistrationNumber": "税务登记号567",
        "bankName": "交通银行",
        "accountNumber": "321654987",
        "contactPerson": "钱七",
        "creditLimit": "9000",
        "creationDate": "2024年04月11日",
        "usageStatus": "活跃"
    }
]

// 表格列参数
export const tableColumnList: TableColumn[] = [
    {
        "prop": "name",
        "label": "名称"
    },
    {
        "prop": "code",
        "label": "编码"
    },
    {
        "prop": "shortCode",
        "label": "简码"
    },
    {
        "prop": "type",
        "label": "类型"
    },
    {
        "prop": "licenseNumber",
        "label": "许可证号"
    },
    {
        "prop": "licenseExpiryDate",
        "label": "许可证有效期"
    },
    {
        "prop": "permitNumber",
        "label": "执照号"
    },
    {
        "prop": "permitExpiryDate",
        "label": "执照效期"
    },
    {
        "prop": "address",
        "label": "地址"
    },
    {
        "prop": "phone",
        "label": "电话"
    },
    {
        "prop": "taxRegistrationNumber",
        "label": "税务登记号"
    },
    {
        "prop": "bankName",
        "label": "开户银行"
    },
    {
        "prop": "accountNumber",
        "label": "账号"
    },
    {
        "prop": "contactPerson",
        "label": "联系人"
    },
    {
        "prop": "creditLimit",
        "label": "信用额"
    },
    {
        "prop": "creationDate",
        "label": "建档日期"
    },
    {
        "prop": "usageStatus",
        "label": "是否停用"
    }
]
